.section-home-box {
  position: relative;
  #top-open {
    position: fixed;
    width: 4rem;
    height: 4rem;
    top: 0;
    right: 0;
    cursor: pointer;
    background: url("../img/2.png") no-repeat;
    background-size: cover;
  }

  .section-home {
    width: 60%;
    margin: 0 auto;

    .home-box {
      display: flex;

      .home-box-left {
        flex: 1;
        margin: 1rem 2rem 0 0;

        .home-left-title {
          width: 100%;
          height: 3.8rem;
          line-height: 3.8rem;
          background-color: #ffff;

          ul > li {
            display: inline-block;
            position: relative;
            width: 5.2rem;
            padding: 0;
            margin: 0;
            text-align: center;

            a {
              color: #333;
            }

            .home-title-active {
              position: absolute;
              width: 0;
              height: 0;
              bottom: 0;
              transform: translate(50%, 0);
              border: 7px solid transparent;
              border-bottom-color: #fff8bf;
            }
          }
        }

        .home-new {
          width: 100%;
          height: 3.8rem;
          line-height: 3.8rem;
          background-color: #fff8bf;
          border-radius: .2rem;
          text-align: center;

          a {
            color: #333;
          }
        }

        .home-left-content {
          margin-top: 1rem;

          .left-content-box {
            margin-top: 1rem;
            padding: 2rem 0 0;
            background-color: #FFFFFF;
            border-radius: .5rem;

            .content-detail {
              padding: 0 2rem;

              .content-header {
                display: flex;

                .content-user-img {
                  width: 5rem;
                  margin-right: 1rem;

                  a > img {
                    width: 5rem;
                    height: 5rem;
                    border-radius: 50%;
                  }
                }

                .text-title-left {
                  flex: 1;

                  .title-name {
                    font-size: 1.4rem;
                    font-weight: bold;
                    line-height: 2rem;

                    a {
                      color: #333333;
                    }
                  }

                  .title-detail {
                    font-size: 1.2rem;
                    line-height: 2rem;
                  }
                }

                .text-title-right {
                  width: 2rem;
                  padding: 0.2rem 0 0.5rem;

                  a > i {
                    //border: 10px solid #f7f7f7;
                    //border-top-color: transparent;
                    //border-bottom-color: transparent;
                  }
                }
              }

              .text-details {
                margin-top: 0.5rem;

                .text-detail {
                  -webkit-line-clamp: 4;

                  h3 {
                    font-size: 1.4rem;
                    line-height: 2rem;
                    color: #333;
                  }
                }

                .detail-img {
                  margin-top: 1rem;

                  img {
                    width: 100%;
                    height: auto;
                    border-radius: 0.5rem;
                  }
                }

                .detail-code {
                  width: 100%;

                  pre {
                    overflow-x: auto;
                    border-radius: 0.5rem;
                  }
                }
              }

              .content-text {
                flex: 1;
              }
            }

            .box-footer {
              font-size: 0;
              height: 3.8rem;
              margin-top: 0.8rem;
              border-top: 1px solid #f2f2f5;

              ul > li {
                display: inline-block;
                width: calc(100% / 4);
                text-align: center;
                position: relative;

                a {
                  font-size: 1.4rem;
                  line-height: 3.8rem;

                  i {
                    margin-right: .5rem;
                  }
                }
              }

              ul > li:after {
                position: absolute;
                width: 0.1rem;
                height: 1.2rem;
                right: 0;
                bottom: 50%;
                transform: translate(0, 50%);
                content: '';
                background: #d9d9d9;
              }

              ul > li:last-child:after {
                content: none;
              }
            }
          }
        }
      }

      .home-box-right {
        width: 23rem;

        .top-user-img {
          background: url(../img/body_bg.jpg) no-repeat;
          background-size: cover;
          position: relative;
          width: 100%;
          height: 7.6rem;
          margin: 1rem 0 0;
          border-top-left-radius: .2rem;
          border-top-right-radius: .2rem;

          img {
            position: absolute;
            bottom: -1.5rem;
            right: 50%;
            width: 6rem;
            height: 6rem;
            border-radius: 50%;
            transform: translate(50%, 0);
            cursor: pointer;
          }
        }

        .right-top-user {
          background-color: #FFFFFF;
          border-radius: 0.2rem;

          .top-user-name {
            width: 100%;
            font-size: 14px;
            padding-top: 2rem;
            font-weight: bold;
            text-align: center;
            cursor: pointer;
          }

          .top-user-content {
            padding: 1rem 0;
            font-size: 0;
            border-bottom-left-radius: 0.2rem;
            border-bottom-right-radius: 0.2rem;

            li {
              display: inline-block;
              position: relative;
              width: calc(100% / 3);
              font-size: 1.2rem;
              text-align: center;
              cursor: pointer;

              span {
                display: block;
                color: #808080;
              }

              .content-font {
                font-size: 1.4rem;
                font-weight: bold;
                color: #333333;
              }
            }

            li:after {
              position: absolute;
              content: ' ';
              right: 0;
              bottom: 50%;
              width: 0.1rem;
              height: 2rem;
              background-color: #cccccc;
              transform: translate(0, 50%);
            }

            li:last-child:after {
              content: none;
            }
          }
        }

        .right-tool {
          background-color: #FFFFFF;
          margin: 1rem 0;
          border-radius: 0.2rem;

          h3 {
            height: 3.5rem;
            line-height: 3.5rem;
            font-size: 1.4rem;
            font-weight: bold;
            margin: 0;
            padding: 0.5rem 2rem 0.3rem;
            color: #1f160e;
            border-bottom: 1px solid #f5f5f5;
          }

          ul {
            padding: 0.8rem 0;

            li {
              font-size: 1.2rem;
              line-height: 3rem;
              padding: 0 2rem;

              a > i {
                margin-right: 0.5rem;
              }
            }

            li:hover {
              background-color: #f5f5f5;
              padding: 0 -2rem;
              cursor: pointer;
            }
          }
        }

        .right-hot {
          background-color: #FFFFFF;
          margin: 1rem 0;
          border-radius: 0.2rem;

          .hot-title {
            height: 3.5rem;
            line-height: 3.5rem;
            padding: 0.5rem 2rem 0.3rem;
            border-bottom: 1px solid #f5f5f5;

            .hot-title-left, .hot-title-right {
              margin: 0;
              color: #1f160e;
            }

            .hot-title-left {
              float: left;
              font-size: 1.4rem;
              font-weight: bold;
            }

            .hot-title-right {
              float: right;
              font-size: 1.2rem;
              cursor: pointer;

              i {
                margin-right: 0.5rem;
              }
            }
          }

          .hot-detail {
            padding: 0.8rem 0;

            a {
              height: 3.5rem;
              line-height: 3.5rem;

              ul {
                display: flex;

                .hot-icon {
                  width: 3rem;
                  text-align: right;
                  vertical-align: middle;
                }

                .hot-notices {
                  flex: 1;
                  -webkit-line-clamp: 1;

                  span {
                    padding: 0 0.5rem;
                  }
                }

                .hot-info {
                  width: 5rem;
                  text-align: right;
                  padding-right: 2rem;
                  -webkit-line-clamp: 1;
                }
              }

              ul:hover {
                background-color: #f5f5f5;
                cursor: pointer;
              }
            }
          }
        }

        .right-news {
          background-color: #FFFFFF;
          margin: 1rem 0;
          border-radius: 0.2rem;

          .news-title {
            height: 3.5rem;
            line-height: 3.5rem;
            font-size: 1.4rem;
            font-weight: bold;
            margin: 0;
            padding: 0.5rem 2rem 0.3rem;
            color: #1f160e;
            border-bottom: 1px solid #f5f5f5;
          }

          ul {
            padding: 0.8rem 0;

            li {
              font-size: 1.2rem;
              line-height: 3rem;
              padding: 0 2rem;

              a {
                color: #fa0000;

                i {
                  margin-right: 0.5rem;
                }
              }
            }

            li:hover {
              background-color: #f5f5f5;
              padding: 0 -2rem;
              cursor: pointer;
            }
          }
        }
      }
    }
  }
}

@media screen and (max-width: 1024px) {
  .section-home {
    width: 80%;
  }
}

@media screen and (max-width: 768px) {
  .section-home {
    .home-box {
      display: block!important;

      .home-box-left {
        flex: none!important;
        margin: 1rem 0 0!important;
      }

      .home-box-right {
        display: none!important;
      }
    }
  }
}

@media screen and (max-width: 425px) {
  .section-home {
    width: 90%!important;
  }
}